import request from '@/utils/request'

export function getBookList(data) {
  return request({
    url: '/book/findList',
    data:data
  })
}
export function getBookListByCondition(data) {
  return request({
    url: '/book/findListByCategory',
    data:data
  })
}
export function getBookDetail(data) {
  return request({
    url: '/book/findDetail',
    data:data
  })
}
export function updateBookStatus(data) {
  return request({
    url: '/book/updateStatus',
    data:data
  })
}
export function updateBookSort(data) {
  return request({
    url: '/book/updateSort',
    data:data
  })
}
export function saveBook(data) {
  return request({
    url: '/book/save',
    data:data
  })
}
export function getBookCategoryList(data) {
  return request({
    url: '/book/findCategoryList',
    data:data
  })
}
export function getAllSubCategoryList() {
  return request({
    url: '/bookCategory/findAllSubCategoryList',
    data:{}
  })
}
